/*
 * This source code is part of TWaver 4.0
 *
 * Serva Software PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * Copyright 2002 - 2011 Serva Software. All rights reserved.
 */

package demo.chart.attachment.chartattachment;

import twaver.chart.BubbleChart;
import twaver.network.ui.ElementUI;

public class BubbleElementAttachcment extends XYScaleElementAttachment {

	public BubbleElementAttachcment(String name, ElementUI ui) {
		super(name, ui);
	}

	public BubbleElementAttachcment(String name, ElementUI ui, boolean minimized, boolean shrinked) {
		super(name, ui, minimized, shrinked);
	}

	private BubbleChart chart;

	protected void initChart() {
		chart = new BubbleChart();
		chart.setYScaleMinValue(0);
		chart.setYScaleMaxValue(100);
		chart.setYScaleValueGap(20);
		chart.setXScaleLineVisible(true);
		
		chart.setXScaleTextVisible(false);
		chart.setShadowOffset(0);
		chart.setShapeLineVisible(true);
		chart.setValueTextVisible(false);
		
		setChartProperty(chart);
	}

}